home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / js / remoteDesktop.js < prev    next >
Text File  |  2010-05-19  |  18KB  |  1 lines

  1. var XX,YY;var startX,startY;var winState="normal";var mixedEvents="";var keyEvents="";var keyPressedCalled=0;var rdTimeout=false;var focusInterval;var inputBoxDragInProgress=0;var sendEventsInProgress=0;var sendEventsImmediately=0;var maskDragInProgress=0;var inputBoxFocused=0;var clipboardBoxFocused=0;var keyBuffer="";var lastKeyPressedKC=0;var lastKeyDownDate=0;var shiftDown=false;var shiftUsed=0;var ctrlDown=false;var ctrlUsed=0;var altDown=false;var altUsed=0;var showMouseIcon=1;var pws="";var maskFaded=1;var inputsDisabled=0;var mouseIn=1;var dbsl=0,dbst=0;function stopLoading(){windowStop();var b,a=0;while(b=dgi("sq"+a)){imgBuff[a].src=b.src="/gfx/v.gif";a++}}function beforeConfigureResource(){}var mouseAreaLastXY;function winMouseIn(){mouseIn=1;resumeFocus(1)}function winMouseOut(){mouseIn=0;resumeFocus(0)}function resumeFocus(a){if(altClick){return}if(a&&!focusInterval&&!focusIntervalSuspended&&dgi("keys2")){focusInterval=setInterval("dgi('keys2').focus()",100)}if(!a&&focusInterval){clearInterval(focusInterval);focusInterval=0}}function inputBoxesResetSize(){if(dd.elements.controlBox){dd.elements.controlBox.resizeTo(actualOffsetRight(dgi("controlBoxLE"))-actualOffsetLeft(dgi("controlBox"))+10,false)}if(dd.elements.inputBox){dd.elements.inputBox.resizeTo(actualOffsetRight(dgi("inputBoxLE"))-actualOffsetLeft(dgi("inputBox"))+10,false)}}function toggleDebug(){debug=!debug;if(debug){dgi("debugDiv").style.display="block"}else{dgi("debugDiv").style.display="none"}}function trace(a){if(dgi("debugDiv")){dgi("debugDiv").innerHTML=a+"<br>"+dgi("debugDiv").innerHTML}}function unprotect(a){return a.replace(/&/gi,"&").replace(/</gi,"<").replace(/!weezobr!/gi,String.fromCharCode(10))}function protect(a){return a.replace(/[\/]/gi,"*weezoslash*").replace(/[&]/gi,"*weezoamp*")}function setEvtInterval(a,b){if(rdTimeout!==false){if(b){return}clearTimeout(rdTimeout)}rdTimeout=false;if(a){rdTimeout=setTimeout("sendEvents()",a)}else{sendEventsImmediately=0}}function eventTimeoutSafety(){if(!eventTimeoutSafetySet){return}sendEventsInProgress=0;sendEvents()}function winStateChanged(a,b){winState=b;if(b=="minMax"||b=="minNormal"){winMouseOut();setEvtInterval(0)}else{if(a=="minMax"||a=="minNormal"){sendEvents()}}}function setMouseIcons(a){if(!showMouseIcon){return}dgi("mouseIcons").innerHTML+=a;if(dd.elements.mask){dd.elements.mask.maximizeZ()}if(dd.elements.inputBox){dd.elements.inputBox.maximizeZ()}if(dd.elements.controlBox){dd.elements.controlBox.maximizeZ()}if(dd.elements.clipboardBox){dd.elements.clipboardBox.maximizeZ()}}function clearMouseIcons(){dgi("mouseIcons").innerHTML=""}function blink(c,d,b){if(!b){b="hide"}if(winMe.addControls){elts=parent.D.getElementsByName(c)}else{elts=D.getElementsByName(c)}for(var a=0;a<elts.length;a++){if(b=="hide"){elts[a].style.visibility="hidden"}else{elts[a].style.visibility="visible"}}if(b=="hide"){setTimeout('blink("'+c+'", '+d+', "show")',100)}else{if((d--)>0){setTimeout('blink("'+c+'", '+(d)+', "hide")',100)}}}function modKeyIcon(a){return'<img src="/gfx/v.gif" class="modKey '+a+'">'}function gfxKE(a){a=a.replace(/[+]/g,"*plus*").replace(/%/g,"*alt*").replace(/\^/g,"*ctrl*");a=a.replace(/{\*plus\*}/g,"+").replace(/{\*alt\*}/g,"%").replace(/{\*ctrl\*}/g,"^");a=a.replace(/\*plus\*/g,modKeyIcon("shift"));a=a.replace(/{SHIFT}/g,modKeyIcon("shift")+" ");a=a.replace(/\*alt\*/g,modKeyIcon("alt"));a=a.replace(/{ALT}/g,modKeyIcon("alt")+" ");a=a.replace(/\*ctrl\*/g,modKeyIcon("ctrl"));a=a.replace(/{CTRL}/g,modKeyIcon("ctrl")+" ");a=a.replace(/{ENTER}/g,modKeyIcon("ENTER"));a=a.replace(/{BACKSPACE}/g,modKeyIcon("BACKSPACE"));a=a.replace(/{ESC}/g,modKeyIcon("ESC"));a=a.replace(/{UP}/g,modKeyIcon("UP"));a=a.replace(/{DOWN}/g,modKeyIcon("DOWN"));a=a.replace(/{LEFT}/g,modKeyIcon("LEFT"));a=a.replace(/{RIGHT}/g,modKeyIcon("RIGHT"));a=a.replace(/{DELETE}/g,modKeyIcon("DELETE"));a=a.replace(/{INSERT}/g,modKeyIcon("INSERT"));a=a.replace(/{HOME}/g,modKeyIcon("HOME"));a=a.replace(/{END}/g,modKeyIcon("END"));a=a.replace(/{PGUP}/g,modKeyIcon("PGUP"));a=a.replace(/{PGDN}/g,modKeyIcon("PGDN"));a=a.replace(/{NUMLOCK}/g,modKeyIcon("NUMLOCK"));a=a.replace(/{CAPSLOCK}/g,modKeyIcon("CAPSLOCK"));a=a.replace(/{TAB}/g,modKeyIcon("TABUL"));return a}function updateWS(){var a="";if(!inputBoxFocused){if(!keyEvents.length){if(shiftDown){a+=modKeyIcon("shift")}if(ctrlDown){a+=modKeyIcon("ctrl")}if(altDown){a+=modKeyIcon("alt")}}a+=" "+gfxKE(keyEvents)}if(a==pws){return}if(keyEvents.length>0||shiftDown||ctrlDown||altDown){dgi("nStatus").style.display="block";dgi("nStatus").innerHTML=a}else{dgi("nStatus").style.display="none"}pws=a}function toggleInputBox(){if(displayInputBox=!displayInputBox){dd.elements.inputBox.moveTo(dd.elements.controlBox.x,dd.elements.controlBox.y);dd.elements.controlBox.moveTo(-1000,-50);sendData("displayInputBox=true&noSt=true",PHP_SELF,false)}else{dd.elements.controlBox.moveTo(dd.elements.inputBox.x,dd.elements.inputBox.y);dd.elements.inputBox.moveTo(-1000,-50);sendData("displayInputBox=false&noSt=true",PHP_SELF,false)}focusKeyInput()}function changeZoom(a){stopLoading();fas("",a,winMe.getInnerWidth()-3,winMe.getInnerHeight()-3)}function setScreen(a){stopLoading();fas(a,"setScreen",winMe.getInnerWidth()-3,winMe.getInnerHeight()-3,"sync")}function fadeMask(){if(dd.ie){dgi("mask").style.filter="Alpha(opacity=50, style=0)"}else{dgi("mask").style.background="url('mbg.png')"}maskFaded=true;resumeFocus(0);focusIntervalSuspended=1}function showMask(){if(inputBoxDragInProgress){return}if(dd.ie){dgi("mask").style.filter="Alpha(opacity=1, style=0)"}else{dgi("mask").style.background="transparent"}maskFaded=false;focusIntervalSuspended=0;resumeFocus(1);inputBoxFocused=false}function updateSquares(c){if(!c){for(var a=0;a<D.getElementsByName("sqi").length;a++){dgi("sq"+a).src=rdPath+"/"+Math.floor(1000000*Math.random())+"/"+a+".jpg"}setEvtInterval(refreshAfterNoEvent,1);return}var b=c.split(";");sendEventsInProgress=0;if(sendEventsImmediately){sendEvents()}sendEventsImmediately=0;for(var a=0;a<b.length;a++){squareSeq[a]=parseInt(squareSeq[a]);if(b[a]>squareSeq[a]){imgBuff[a].src=rdPath+"/"+b[a]+"/"+a+".jpg";if(debug){dgi("sq"+a).className="debugSquare";dgi("dbgSq"+a).style.color="red";dgi("dbgSq"+a).innerHTML=b[a]}squareSeq[a]=b[a]}else{if(debug){dgi("sq"+a).className="debugSquareNR";dgi("dbgSq"+a).style.color="blue"}}}}function imgBuffLoaded(){dgi("sq"+this.alt).src=this.src}function setState(a){if(a&&a.pageX!=undefined){if(phpBrowser=="opera"&&!a.pageX&&!a.pageY){if(XX+YY>50){keyProcessMods(a);return}}XX=a.pageX;YY=a.pageY}else{XX=event.x+D.body.scrollLeft;YY=event.y+D.body.scrollTop}YY-=actualOffsetTop(dgi("squares"));keyProcessMods(a)}function addEvent(a){if(!mouseIn&&a.substr(0,3)=="mmv"){return}if(a.substr(0,3)=="mmv"&&a.indexOf("undefined")!=-1){return}if(mixedEvents.length>0){mixedEvents+="/"}mixedEvents+=a}function sendEvents(){if(winState=="minMax"||winState=="minNormal"){return}clearMouseIcons();if(sendEventsInProgress){sendEventsImmediately=1;eventTimeoutSafetySet=1;setTimeout("eventTimeoutSafety()",3*refreshAfterNoEvent);return}eventTimeoutSafetySet=0;sendEventsInProgress=1;seq++;if(mixedEvents==""){if(!altClick){addEvent("mmv;"+XX+";"+YY+";")}sendData("noSt=true&seq="+seq+"&sendMixedEvents="+mixedEvents,PHP_SELF,false);mixedEvents="";keyEvents="";updateWS();setEvtInterval(refreshAfterNoEvent)}else{if(!altClick){addEvent("mmv;"+XX+";"+YY+";")}command="seq="+seq+"&noSt=true&sendMixedEvents="+encodeURIComponent(mixedEvents);sendData(command,PHP_SELF,true);mixedEvents="";keyEvents="";updateWS();setEvtInterval(refreshAfterEvent)}}function watchScrollBars(){if(D.body.scrollLeft==dbsl&&D.body.scrollTop==dbst){return}dbsl=D.body.scrollLeft;dbst=D.body.scrollTop;dgi("keys2div").style.left=(dbsl+D.body.offsetWidth/2)+"px";dgi("keys2div").style.top=(dbst+D.body.offsetHeight/2)+"px"}function updateMousePos(b){setState(b);updateWS();dgi("nStatus").style.left=(XX+15)+"px";dgi("nStatus").style.top=(YY)+"px";dgi("keys2div").style.left=(D.body.scrollLeft+winMe.getInnerWidth()/2)+"px";dgi("keys2div").style.top=(D.body.scrollTop+winMe.getInnerHeight()/2)+"px";XX=Math.round(XX*1/zoom);YY=Math.round(YY*1/zoom);if(maskDragInProgress&&dd.obj&&dd.obj.name=="mask"){var a=dgi("select").style;if(startX>XX){a.left=XX*zoom;a.width=(startX-XX)*zoom}else{a.left=startX*zoom;a.width=(XX-startX)*zoom}if(startY>YY){a.top=YY*zoom;a.height=(startY-YY)*zoom}else{a.top=startY*zoom;a.height=(YY-startY)*zoom}a.display="block"}}function updateMouseEvents(a){if(maskFaded){return}setEvtInterval(0);if(a=="rd"||a=="ru"){setMouseIcons('<div style="position:absolute;top:'+(YY*zoom-16)+"px;left:"+(XX*zoom-16)+'px;">'+dgi("mouseR").innerHTML+"</div>")}else{if(a!="move"){setMouseIcons('<div style="position:absolute;top:'+(YY*zoom-16)+"px;left:"+(XX*zoom-16)+'px;">'+dgi("mouseL").innerHTML+"</div>")}}var b=a+";"+XX+";"+YY+";";if(shiftDown){b+="+";shiftUsed=true}if(altDown){b+="%";altUsed=true}if(ctrlDown){b+="^";ctrlUsed=true}addEvent("m"+b);if(a!="ld"&&a!="rd"){setEvtInterval(eventMaxDurationMouse)}}function preDrag(){if(altClick){return}if(dd.obj.name=="mask"){startX=XX;startY=YY;maskDragInProgress=true;var a=dgi("select").style;a.left=XX*zoom;a.top=YY*zoom;a.height=0;a.width=0;a.display="block";if(dd.e.button>1){updateMouseEvents("rd")}else{updateMouseEvents("ld")}}if(dd.obj.name=="inputBox"||dd.obj.name=="controlBox"||dd.obj.name=="clipboardBox"){inputBoxDragInProgress=true}focusKeyInput()}function preDrop(){maskDragInProgress=false;dgi("select").style.display="none";if(dd.obj.name=="inputBox"||dd.obj.name=="controlBox"||dd.obj.name=="clipboardBox"){inputBoxDragInProgress=false}else{if(dd.e.button>1){updateMouseEvents("ru")}else{updateMouseEvents("lu")}}}function keyAddSeq(a){addEvent("k"+protect(a));keyEvents+=a.replace(/ /," ");updateWS();setEvtInterval(eventMaxDurationKb)}function keyStrikeAdd(a){var b="";if(ctrlDown){b+="^"}if(altDown){b+="%"}if(a=="+"){a="{+}"}if(a=="%"){a="{%}"}if(a=="^"){a="{^}"}if(a=="~"){a="{~}"}if(a=="{"){a="{{}"}if(a=="}"){a="{}}"}if(a=="["){a="{[}"}if(a=="]"){a="{]}"}if(b=="^%"&&a=="+{DELETE}"){a="{DELETE}"}shiftUsed=false;altUsed=false;ctrlUsed=false;keyAddSeq(b+a)}var lastModKeys;function keyProcessMods(a){kc=27;if(a){kc=a.which;if(a.shiftKey){keySetMod("shift",true)}else{keySetMod("shift",false)}if(a.altKey){keySetMod("alt",true)}else{keySetMod("alt",false)}if(a.ctrlKey){keySetMod("ctrl",true)}else{keySetMod("ctrl",false)}}else{if(W.event){kc=W.event.keyCode;if(W.event.shiftKey){keySetMod("shift",true)}else{keySetMod("shift",false)}if(W.event.altKey){keySetMod("alt",true)}else{keySetMod("alt",false)}if(W.event.ctrlKey){keySetMod("ctrl",true)}else{keySetMod("ctrl",false)}}}if(lastModKeys!=" "+altDown+ctrlDown+shiftDown){updateWS()}lastModKeys=" "+altDown+ctrlDown+shiftDown;return kc}function keySetMod(a,b){if(a=="alt"){if(!altDown&&b){altUsed=true}altDown=b}if(a=="ctrl"){if(!ctrlDown&&b){ctrlUsed=true}ctrlDown=b}if(a=="shift"){if(!shiftDown&&b){shiftUsed=true}shiftDown=b}}function keyProcessInput(){if(dgi("keys2").value.length>0&&dgi("keys2").value.length<3){keyStrikeAdd(dgi("keys2").value.replace(/\n/,"{ENTER}"));dgi("keys2").value="";return true}return false}function keyDown(a){if(maskFaded){return}if((new Date()).getTime()-lastKeyDownDate<5){return}lastKeyDownDate=(new Date()).getTime();kc=keyProcessMods(a);if(inputsDisabled){return}keyPressedCalled=1;setTimeout("keyPressed("+kc+")",1);if((ctrlDown&&!altDown)||sk[kc]){return false}}function keyPress(a){if(maskFaded){return}kc=keyProcessMods(a);if(inputsDisabled){return}if(keyPressedCalled){return}if(keyProcessInput()){keyCancelkeyPressed=1}}function keyUp(a){if(maskFaded){return}kc=keyProcessMods(a);if(inputsDisabled){return}if(!keyPressedCalled){keyProcessInput()}mods="";if(altDown){mods+="%"}if(ctrlDown){mods+="^"}if(shiftDown){mods+="+"}if(kc==18&&altUsed){altUsed=false;ctrlUsed=false;shiftUsed=false;keyAddSeq(mods+"{ALT}")}if(kc==17&&ctrlUsed){altUsed=false;ctrlUsed=false;shiftUsed=false;keyAddSeq(mods+"{CTRL}")}if(kc==16&&shiftUsed){altUsed=false;ctrlUsed=false;shiftUsed=false;keyAddSeq(mods+"{SHIFT}")}}function keyPressed(a){keyPressedCalled=0;if(a==86&&ctrlDown){dgi("keys2").value=""}if(!keyProcessInput()){if(sk[a]){keyStrikeAdd(((shiftDown)?"+"+sk[a]:sk[a]))}else{if(a<32){return}if(String.fromCharCode(a)!==false){if(ctrlDown||altDown){keyStrikeAdd(String.fromCharCode(a).toLowerCase())}}}}}function sendKeys(){var a;if(winMe.addControls){a=parent}else{a=window}if(a.dgi("keys").value.length==0){return}addEvent("mmv;"+XX+";"+YY+";");addEvent("k"+a.dgi("keys").value);sendEvents();a.dgi("keys").value=""}function clearKeys(){var a=(winMe.addControls)?parent:W;a.dgi("keys").value=""}function insertKey(){var a;if(winMe.addControls){a=parent}else{a=window}if(a.dgi("specialKeySelect").value=="Cancel"){return}a.dgi("keys").value+=a.dgi("specialKeySelect").value;a.dgi("keys").focus();a.dgi("specialKeySelect").value="Cancel"}function focusKeyInput(){if(maskFaded||displayInputBox||clipboardBoxFocused){resumeFocus(0);return}updateWS();dgi("keys2").focus()}function focusKeys(){inputBoxFocused=true;updateWS()}function sendClipboard(a){if(phpBrowser=="ie"){if(typeof clipboardData!="undefined"){addEvent("mmv;"+XX+";"+YY+";");addEvent("cp"+protect(clipboardData.getData("Text")));sendEvents();blink("clipboardOutBt",1)}else{alert(captionClipboardNoData)}}else{if(!a){showSendClipboardBox()}else{a=dgi("clipboardText").value;addEvent("mmv;"+XX+";"+YY+";");addEvent("cp"+protect(a));sendEvents();blink("clipboardOutBt",1);closeClipboardBox()}}}function requestClipboard(){addEvent("cg");sendEvents();blink("clipboardInBt",1)}function downloadClipboardFiles(){fas("","downloadClipboardFiles")}function pasteInLocalClipboardIE(b){dgi("clipboardText").innerText=unprotect(b);var a=dgi("clipboardText").createTextRange();a.execCommand("RemoveFormat");a.execCommand("Copy");blink("clipboardInBt",3)}function resetClipboardBox(){dgi("clipboardText").value=""}function addToClipboardBox(a){dgi("clipboardText").value+=a}function pasteInLocalClipboard(a){dgi("clipboardText").value=unprotect(a);dgi("clipboardText").select();showGetClipboardBox();blink("clipboardInBt",3)}function closeClipboardBox(){clipboardBoxFocused=false;dgi("clipboardText").value="";dd.elements.clipboardBox.moveTo(-1000,50)}function showGetClipboardBox(){dgi("clipboardSendBt").style.display="none";dgi("clipboardCaptionRequest").style.display="inline";dgi("clipboardCaptionSend").style.display="none";dgi("clipboardCaptionPaste").style.display="none";dgi("clipboardText").focus();dd.elements.clipboardBox.maximizeZ();dd.elements.clipboardBox.moveTo(20,50)}function showSendClipboardBox(){dgi("clipboardSendBt").style.display="block";dgi("clipboardCaptionRequest").style.display="none";dgi("clipboardCaptionSend").style.display="inline";dgi("clipboardCaptionPaste").style.display="inline";dgi("clipboardText").focus();dd.elements.clipboardBox;dd.elements.clipboardBox.maximizeZ();dd.elements.clipboardBox.moveTo(Math.max(dd.elements.controlBox.x,dd.elements.inputBox.x),Math.max(dd.elements.controlBox.y,dd.elements.inputBox.y)+80)}function altClickShowMenu(){if(altClickDragInProgress){altClickAction("dragDrop");return}altClickX=Math.round(mouseX*1/zoom);altClickY=Math.round((mouseY-actualOffsetTop(dgi("squares")))*1/zoom);var b=24/iPhoneZoom();dgi("target").style.width=(2*b)+"px";dgi("target").style.height=(2*b)+"px";dgi("target").style.left=(mouseX-b)+"px";dgi("target").style.top=(mouseY-b)+"px";dgi("target").style.display="block";if(altClickMenuShown){return}setEvtInterval(0);var e=window.pageXOffset+window.innerWidth/2-b;var d=window.pageYOffset+b*4;for(var c=0;c<dgn("acBt","all").length;c++){dgn("acBt",c).className="acBt";if(dgn("acBt",c).id!="acLc"&&dgn("acBt",c).id!="acRc"){dgn("acBt",c).style.padding=(b/4)+"px";dgn("acBt",c).firstChild.style.width=(2*b)+"px";dgn("acBt",c).firstChild.style.height=(2*b)+"px"}else{dgn("acBt",c).style.padding=(b/2)+"px";dgn("acBt",c).firstChild.style.width=(3*b/2)+"px";dgn("acBt",c).firstChild.style.height=(3*b/2)+"px"}dgn("acBt",c).style.zIndex=1001;switch(dgn("acBt",c).id){case"acLc":ofx=-1.5;ofy=-1.5;break;case"acDbl":ofx=0;ofy=-1.5;break;case"acRc":ofx=1.5;ofy=-1.5;break;case"acDrag":ofx=-1.5;ofy=0;break;case"acMove":ofx=0;ofy=0;break;case"acCancel":ofx=1.5;ofy=0;break;default:ofx=0;ofy=1;break}ofx*=2*b;ofy*=2*b;dgn("acBt",c).style.left=(e+ofx)+"px";dgn("acBt",c).style.top=(d+ofy)+"px"}ofx=-3*b;ofy=3*b;dgi("acText").style.width=(8*b)+"px";dgi("acText").style.height=(3*b)+"px";dgi("acText").style.padding=(b/4)+"px";dgi("acText").style.left=(e+ofx)+"px";dgi("acText").style.top=(d+ofy)+"px";var f=dgi("acText").firstChild;dgi("acText").style.zIndex=1001;var a=b+"px";dgi("acText").style.fontSize=b;dgi("acTxtInput").style.fontSize=b*0.6;dgi("acKeySelect").style.fontSize=b*0.6;while(f!=undefined&&f!=null){if(f.style){f.style.fontSize="30px"}f=f.nextSibling}altClickMenuShown=1}function iPhoneZoom(){return Math.abs(window.orientation)==90?480/window.innerWidth:320/window.innerWidth}function updateOrientation(){}function altClickHideMenu(){for(var a=0;a<dgn("acBt","all").length;a++){dgn("acBt",a).style.left="-2000px"}dgi("acText").style.left="-2000px";dgi("target").style.left="-2000px";altClickMenuShown=0}function altClickAction(b){var a=((dgi("acShift").checked)?"+":"")+((dgi("acAlt").checked)?"%":"")+((dgi("acCtrl").checked)?"^":"");switch(b){case"dragPick":altClickDragInProgress=1;altClickHideMenu();return;break;case"dragDrop":XX=Math.round(mouseX*1/zoom);YY=Math.round((mouseY-actualOffsetTop(dgi("squares")))*1/zoom);altClickDragInProgress=0;addEvent("mld;"+altClickX+";"+altClickY+";"+a);addEvent("mlu;"+XX+";"+YY+";"+a);break;case"dbl":addEvent("mlc;"+altClickX+";"+altClickY+";"+a);addEvent("mlc;"+altClickX+";"+altClickY+";"+a);break;case"lc":addEvent("mlc;"+altClickX+";"+altClickY+";"+a);break;case"rc":addEvent("mrc;"+altClickX+";"+altClickY+";"+a);break;case"mv":addEvent("mmv;"+altClickX+";"+altClickY+";"+a);break}sendEvents();altClickHideMenu()}function altClickCheck(a){var b=dgi(a).nextSibling;b.style.color=(dgi(a).checked)?"":"red";dgi(a).checked=(dgi(a).checked)?false:"checked"}function altClickTxt(){addEvent("k"+protect(dgi("acTxtInput").value));dgi("acTxtInput").value="";sendEvents();altClickHideMenu()}function init(){inputBoxesResetSize();for(var a=0;a<squaresNb;a++){imgBuff[a]=new Image();imgBuff[a].alt=a;imgBuff[a].onload=imgBuffLoaded}updateSquares();D.oncontextmenu=function(){return false}};